/*
 * This file is part of the OSMembrane project.
 * More informations under www.osmembrane.de
 * 
 * The project is licensed under the GNU GENERAL PUBLIC LICENSE 3.0.
 * for more details about the license see http://www.osmembrane.de/license/
 * 
 * Source: $HeadURL: http://osmembrane-gui.googlecode.com/svn/sources/src/de/osmembrane/exceptions/ExceptionSeverity.java $ ($Revision: 902 $)
 * Last changed: $Date: 2011-03-09 17:41:55 +0000 (Wed, 09 Mar 2011) $
 */



package de.osmembrane.exceptions;

/**
 * Enumeration for categorizing the severity an Exception.
 * 
 * @author jakob_jarosch
 */
public enum ExceptionSeverity {

	/**
	 * don't use
	 */
	INVALID,

	/**
	 * a warning has occurred to inform the user for example about failed
	 * IO-operations, failed backups, unsaved settings
	 */
	WARNING,

	/**
	 * generic error, thrown, when the program does not work like it should
	 * (developer should be informed at this point)
	 */
	UNEXPECTED_BEHAVIOR,

	/**
	 * like {@link ExceptionSeverity#UNEXPECTED_BEHAVIOR} but the program's
	 * integrity cannot be guaranteed anymore and it should be closed after the
	 * exception
	 */
	CRITICAL_UNEXPECTED_BEHAVIOR;
}
